<template>
    MyLeft组件

    值：{{ count}}
    <button @click="count++">+1</button>
</template>
<script setup>
import { ref ,onMounted,onUnmounted,onDeactivated,onActivated} from 'vue'


const count = ref(0)
onMounted(()=>{
    console.log('ML挂载了')
})

onUnmounted(()=>{
    console.log('ML卸载了')
})
onActivated(()=>{
    console.log('ML激活了')
})
onDeactivated(()=>{
    console.log('ML缓存了')
})
</script>